package com.ruoyi.yuangong.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yuangong.mapper.YuangongMapper;
import com.ruoyi.yuangong.domain.Yuangong;
import com.ruoyi.yuangong.service.IYuangongService;

/**
 * 员工管理Service业务层处理
 *
 * @author ruoyi
 * @date 2023-05-26
 */
@Service
public class YuangongServiceImpl implements IYuangongService
{
    @Autowired
    private YuangongMapper yuangongMapper;

    /**
     * 查询员工管理
     *
     * @param id 员工管理主键
     * @return 员工管理
     */
    @Override
    public Yuangong selectYuangongById(Long id)
    {
        return yuangongMapper.selectYuangongById(id);
    }

    /**
     * 查询员工管理列表
     *
     * @param yuangong 员工管理
     * @return 员工管理
     */
    @Override
    public List<Yuangong> selectYuangongList(Yuangong yuangong)
    {
        return yuangongMapper.selectYuangongList(yuangong);
    }

    /**
     * 新增员工管理
     *
     * @param yuangong 员工管理
     * @return 结果
     */
    @Override
    public int insertYuangong(Yuangong yuangong)
    {
        return yuangongMapper.insertYuangong(yuangong);
    }

    /**
     * 修改员工管理
     *
     * @param yuangong 员工管理
     * @return 结果
     */
    @Override
    public int updateYuangong(Yuangong yuangong)
    {
        return yuangongMapper.updateYuangong(yuangong);
    }

    /**
     * 批量删除员工管理
     *
     * @param ids 需要删除的员工管理主键
     * @return 结果
     */
    @Override
    public int deleteYuangongByIds(Long[] ids)
    {
        return yuangongMapper.deleteYuangongByIds(ids);
    }

    /**
     * 删除员工管理信息
     *
     * @param id 员工管理主键
     * @return 结果
     */
    @Override
    public int deleteYuangongById(Long id)
    {
        return yuangongMapper.deleteYuangongById(id);
    }
}
